package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class UserAuctionBiddingDTO {
    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @ApiModelProperty("质押商品")
    @NotEmpty(message = "质押商品不能为空")
    private List<@Valid UserAuctionBiddingDetailDTO> pledgeItems;

    @ApiModelProperty(value = "支付密码")
    @NotBlank(message = "支付密码不能为空")
    private String paymentPassword;
}
